#ifndef CAN_RECEIVE_H
#define CAN_RECEIVE_H
#include "struct_typedef.h"


typedef enum
{

 CAN_CHASSIS_ID=0x220,
 CAN_SUPERCAP_ID=0x120,
	
}can_msg_id_e;




typedef struct 
{
  uint16_t chassis_power;
	uint16_t chassis_last_power;
	uint16_t chassis_power_set;
}chassis_power_t;

extern chassis_power_t chassis_power;


extern void can_init(void);
extern void can_filter_init(void);
extern void can_send_message(uint16_t *data,uint32_t id);
extern void supercap_send_message(uint16_t* data);
extern const chassis_power_t * get_chassis_power_point(void);


#endif